/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef OHOS_GET_DH_DESCRIPTORS_CALLBACK_PROXY_H
#define OHOS_GET_DH_DESCRIPTORS_CALLBACK_PROXY_H

#include "iget_dh_descriptors_callback.h"

#include "iremote_proxy.h"

namespace OHOS {
namespace DistributedHardware {
class GetDhDescriptorsCallbackProxy : public IRemoteProxy<IGetDhDescriptorsCallback> {
public:
    explicit GetDhDescriptorsCallbackProxy(const sptr<IRemoteObject> object);
    virtual ~GetDhDescriptorsCallbackProxy() override;

    virtual void OnSuccess(const std::string &networkId, const std::vector<DHDescriptor> &descriptors,
        EnableStep enableStep) override;
    virtual void OnError(const std::string &networkId, int32_t error) override;

private:
    int32_t WriteDescriptors(MessageParcel &data, const std::vector<DHDescriptor> &descriptors);

private:
    static inline BrokerDelegator<GetDhDescriptorsCallbackProxy> delegator_;
};
} // DistributedHardware
} // OHOS
#endif // OHOS_GET_DH_DESCRIPTORS_CALLBACK_PROXY_H